#include "protocol_log.h"
#include "log.h"

namespace secsmart_protocol {

void protocol_init_log(base_logger_sptr logger)
{
    PROTOCOL_LOG_INIT(logger);
    PROTOCOL_LOG_SETLEVEL(level::logger_level::debug, true);
}

void protocol_set_log_level(int level, bool trace_func)
{
    PROTOCOL_LOG_SETLEVEL((level::logger_level)level, trace_func);
}

void protocol_get_log_level(int &level, bool &trace_func) 
{
    PROTOCOL_LOG_GETLEVEL(level, trace_func);
}

int protocol_init(base_logger_sptr logger)
{
    protocol_init_log(logger);
    return 0;
}

}